{{useCss "/app-pages/css/user.scss","/user/:user_page?"}}
<div id="user">
    {{#teleporter "user"}}
</div>

<script type="text/vm">
function(vm) {
	Path.registerjSouperRoute("/user/:user_page?", function(loc) {
		var _emit_lock = true;
		var user_page = this.params.user_page;
		console.log(user_page);
		return ({
			stop_emit:true,//因为是2级路由，事件已经出发过了，阻止事件再次捕获触发
			href: loc.href,
			html: "/app-pages/pages/user/",
			js: "/app-pages/js/user/",
			css: "/app-pages/css/user/",
			prefix: "/user/", //URL-pathname中无用的前缀部分，用来过滤href得出pagename
			tel: "user",
			default: "main",
			pagename_handler: function(pagename) { //过滤出来的pagename在这里处理·二次处理pagename
				//过滤掉后缀
				return jSouper.$.lst(pagename, ".") || pagename;
			},
			index: 1,
			vm: vm
		});
	});
	Path.on(["/user/*", "/user/"], function(_current_location) {
		App.set("$Cache.current_page", 5);
	});
}
</script>